package cn.itcast.bos.delivery.quartz;

import org.apache.struts2.convention.annotation.Action;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

import cn.itcast.bos.delivery.service.WayBillService;

public class ElasticJob implements Job{

	@Autowired
	private WayBillService wayBillService;
	@Override
	public void execute(JobExecutionContext context)
			throws JobExecutionException {
		// TODO Auto-generated method stub
		wayBillService.updateElastic();
	}

}
